<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ taglib prefix="product" tagdir="/WEB-INF/tags/product"%>
<%@ taglib prefix="order" tagdir="/WEB-INF/tags/order"%>
<div class="order_show" id="completePanel">
	<input type="hidden" id="salesOrderId" name="salesOrderId"	value="${order.salesOrderId}" />

	<div class="warning_msg">
		<fmt:message key="salesOrder.completePanel.tip" />
	</div>
	<table border="0" cellspacing="0" cellpadding="0"	class="consignee_table" width="100%">
		<tr>
			<th>
				<fmt:message key="salesOrder.orderNo" />
			</th>
			<td>
				${order.orderNo}
			</td>
		</tr>
		<tr>
			<th>
				<fmt:message key="salesOrder.completePanel.relatedAction" />
			</th>
			<td>
				
				<ul>
					<li>
						&radic;
						<fmt:message key="salesOrder.completePanel.tip.releaseStock"/>
					</li>
					<li>
						<hr/>
						&radic;
						<fmt:message key="salesOrder.completePanel.tip.analysis"/>
					</li>
					<c:if test="${not empty order.gainedCouponType}">
						<li>
							<hr/>
							<input type="checkbox" name="sendCoupon" id="sendCoupon" value="true" checked/>
							<fmt:message key="salesOrder.completePanel.tip.sendCoupon">
								<fmt:param>${order.gainedCouponType.name}</fmt:param>
							</fmt:message>
						</li>
					</c:if>
					<c:if test="${(not empty order.customerId) and (not empty order.gainedPoint) and (order.gainedPoint > 0)}">
						<li>
							<hr/>
							<input type="checkbox" name="sendShopPoint" id="sendShopPoint" value="true" checked/>
							<fmt:message key="salesOrder.completePanel.tip.sendShopPoint">
								<fmt:param><span class="red">${order.gainedPoint}</span></fmt:param>
							</fmt:message>：
							<input type="text" id="shopPoint" name="shopPoint" value="${order.gainedPoint}" class="inputtxt" style="width:50px;"
								validConf="required,integer,maxValue=${order.gainedPoint}"/>
							<fmt:message key="salesOrder.completePanel.tip.sendShopPoint.unit"/>
						</li>
					</c:if>
				</ul>
			</td>
		</tr>
	</table>
</div>
<script type="text/javascript">
$j(document).ready(function () {
	autoApplyValidate($('completePanel'));
});	


</script>
